import Cookies from 'js-cookie'

const tokenKey = 'token'

export function getToken() {
    return Cookies.get(tokenKey)
}

export function setToken(token) {
    return Cookies.set(tokenKey, token, {
        expires: 2000,
        path: '/'
    })
}

export function removeToken() {
    return Cookies.remove(tokenKey)
}